package com.xtwy.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @作 者: 侯建军
 * @日 期: 2018/8/4 19:18
 * @描 述:
 * @公 司：山西迅腾伟业
 */
@RefreshScope
@RestController
public class ConfigController {
//    @Value("${name}")
    private String test;

    @GetMapping("/name")
    public String test() {
        return test;
    }
}
